package demo1;

public class Test {
    public static void main(String[] args) {

    }
    public static void main8(String[] args) throws CloneNotSupportedException {
        Person person = new Person();
        person.clone();
    }
    public static void main7(String[] args) {
        int[] arr = null;
        System.out.println(arr.length);
    }
    public static void main6(String[] args) {
        int[] arr = new int[10];
        System.out.println(arr[10]);
    }
    public static void main5(String[] args) {
        System.out.println(10/0);
    }
    public static void main4(String[] args) {
        String s1 = "abc";
        StringBuilder s2 = new StringBuilder(s1);
        StringBuilder s3 = s2.append(s1);
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        StringBuilder s4 = new StringBuilder("cb");
        String s5 = s4.toString();
        System.out.println(s5);
    }
    public static void main3(String[] args) {
        String s1 = new String("abc");
        String s2 = new String("abc");
        System.out.println(s1 == s2);
        System.out.println(s1.intern());
    }
    public static void main2(String[] args) {
        String s1 = "abc";
        String s2 = "abc";
        System.out.println(s1 == s2);
    }
    public static void main1(String[] args) {
        OutClass.InnerClass in = new OutClass.InnerClass();
        System.out.println(in.age);
        OutClass outClass = new OutClass();
        OutClass.InnerClass in2 = outClass.getInnerClass();
    }
}
